package com.shop.common.model;


public class ServiceBean<DATA> {
    private boolean success;
    private String Msg;
    private DATA data;
    private Long maxSize;
    private Long ttl;
    private Integer code;

    public ServiceBean(DATA data) {
        this.data = data;
    }

    public ServiceBean(boolean success, String msg, DATA data) {
        this.success = success;
        Msg = msg;
        this.data = data;
    }

    public ServiceBean() {
        this.success = true;
    }

    public boolean isSuccess() {
        return success;
    }

    public boolean isFaild() {
        return !success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return Msg;
    }

    public void setMsg(String msg) {
        Msg = msg;
    }

    public DATA getData() {
        return data;
    }

    public void setData(DATA data) {
        this.data = data;
    }

    public Long getMaxSize() {
        return maxSize;
    }

    public void setMaxSize(Long maxSize) {
        this.maxSize = maxSize;
    }

    public Long getTtl() {
        return ttl;
    }

    public void setTtl(Long ttl) {
        this.ttl = ttl;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }
}
